package com.loe.httptest

import android.app.Activity
import android.content.Context
import com.loe.mvp.ext_app.openIntent

object HttpTest
{
    var isTest = false
        private set

    fun init(app: Context, isTest: Boolean = false)
    {
        this.isTest = isTest
        SpHttpTest.init(app)
        DbHttpTest.init(app)
    }

    fun start(activity: Activity)
    {
        activity.openIntent(HttpTestActivity::class).start()
    }
}